package homework.homework04;

public class Test04 {
    public static void main(String[] args) {
        //有参构造创建两个对象
        Teacher t1 = new Teacher("周志鹏",30,"java基础中面向对象");
        Student s1 = new Student("韩光",18,"面向对象");
        t1.eat();
        t1.study();
        s1.eat();
        s1.study();
    }
}
